﻿<h2>上传文件</h2>
@using (Html.BeginForm("ImportExcel", "department", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    <div id="files">
    <input type="file" name="FileUpload" />
    </div>
    <input type="button" id="add" value="增加" />
    <input type="submit" name="Submit" id="Submit" value="上传" />
}
<script type="text/javascript">
    var n = 1;
    $("#add").click(function () {
        var filename = "FileUpload" + n;
        $("#files").append("<input type=\"file\" name=\"" + filename + "\" />");
        n++;
    });
</script>

其他页面自己建立，

